{% extends "base.html" %}
{% block title %}添加{% endblock %}
{% block body_content %}
    <div class="container">
      <div class="row">
        <form class="form-horizontal center-block" method="post">
          <h2 class="form-signin-heading">添加文章</h2>
          <div class="col-sm-8 blog-main">
            <div class="blog-post">
              {{ form.hidden_tag() }}
              <div class="form-group center-block">
                <label class="col-sm-2 control-label">标题:</label>
                <div class="col-sm-10">
                {{ form.title(class="form-control", placeholder="文章标题") }}
                </div>
              </div>
              <div class="form-group center-block">
                <label class="col-sm-2 control-label">标签:</label>
                  <div class="col-sm-10">
                  {{ form.tags(class="form-control", placeholder="文章标签") }}
                </div>
              </div>
              <div class="form-group center-block">
                <label class="col-sm-2 control-label">内容:</label>
                <div class="col-sm-10">
                  {{ simplemde.css }}
                  {{ simplemde.js }}
                  {{ form.content(rows=8,class="form-control", placeholder="文章内容", only_input=True) }}
                  {{ simplemde.load }}
                </div>
              </div>
              <div class="row ">
              {{ form.submit(class="btn btn-primary center-block") }}<br>
              </div>
            </div><!-- /.blog-post -->
          </div><!-- /.blog-main -->
        {% include "spider-module.html" %}
      </div><!-- /.row -->
    </div><!-- /.container -->
  </div>
{% endblock %}
